package com.foreverwin.mes.lims.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mark
 * @since 2020-03-09
 */
@TableName("Z_SAMPLING")
public class Sampling extends Model<Sampling> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
   @TableField("SITE")
   private String site;
   @TableField("INSP_TASK_NO")
   private String inspTaskNo;
   @TableField("TEST_TYPE")
   private String testType;
   @TableField("SAMP_BATCH")
   private String sampBatch;
   @TableField("PRD_NUM")
   private String prdNum;
   @TableField("PRD_NAME")
   private String prdName;
   @TableField("SAMP_QTY")
   private Long sampQty;
   @TableField("CREATOR")
   private String creator;
   @TableField("UPDATER")
   private String updater;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getInspTaskNo() {
      return inspTaskNo;
   }

   public void setInspTaskNo(String inspTaskNo) {
      this.inspTaskNo = inspTaskNo;
   }

   public String getTestType() {
      return testType;
   }

   public void setTestType(String testType) {
      this.testType = testType;
   }

   public String getSampBatch() {
      return sampBatch;
   }

   public void setSampBatch(String sampBatch) {
      this.sampBatch = sampBatch;
   }

   public String getPrdNum() {
      return prdNum;
   }

   public void setPrdNum(String prdNum) {
      this.prdNum = prdNum;
   }

   public String getPrdName() {
      return prdName;
   }

   public void setPrdName(String prdName) {
      this.prdName = prdName;
   }

   public Long getSampQty() {
      return sampQty;
   }

   public void setSampQty(Long sampQty) {
      this.sampQty = sampQty;
   }

   public String getCreator() {
      return creator;
   }

   public void setCreator(String creator) {
      this.creator = creator;
   }

   public String getUpdater() {
      return updater;
   }

   public void setUpdater(String updater) {
      this.updater = updater;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String INSP_TASK_NO = "INSP_TASK_NO";

   public static final String TEST_TYPE = "TEST_TYPE";

   public static final String SAMP_BATCH = "SAMP_BATCH";

   public static final String PRD_NUM = "PRD_NUM";

   public static final String PRD_NAME = "PRD_NAME";

   public static final String SAMP_QTY = "SAMP_QTY";

   public static final String CREATOR = "CREATOR";

   public static final String UPDATER = "UPDATER";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "Sampling{" +
         "handle = " + handle +
         ", site = " + site +
         ", inspTaskNo = " + inspTaskNo +
         ", testType = " + testType +
         ", sampBatch = " + sampBatch +
         ", prdNum = " + prdNum +
         ", prdName = " + prdName +
         ", sampQty = " + sampQty +
         ", creator = " + creator +
         ", updater = " + updater +
         ", createdDateTime = " + createdDateTime +
         ", modifiedDateTime = " + modifiedDateTime +
         "}";
   }
}